import service from '@/utils/request'
// @Tags Reservation
// @Summary 创建reservation表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Reservation true "创建reservation表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /reservation/createReservation [post]
export const createReservation = (data) => {
  return service({
    url: '/reservation/createReservation',
    method: 'post',
    data
  })
}

// @Tags Reservation
// @Summary 删除reservation表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Reservation true "删除reservation表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /reservation/deleteReservation [delete]
export const deleteReservation = (params) => {
  return service({
    url: '/reservation/deleteReservation',
    method: 'delete',
    params
  })
}

// @Tags Reservation
// @Summary 批量删除reservation表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除reservation表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /reservation/deleteReservation [delete]
export const deleteReservationByIds = (params) => {
  return service({
    url: '/reservation/deleteReservationByIds',
    method: 'delete',
    params
  })
}

// @Tags Reservation
// @Summary 更新reservation表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Reservation true "更新reservation表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /reservation/updateReservation [put]
export const updateReservation = (data) => {
  return service({
    url: '/reservation/updateReservation',
    method: 'put',
    data
  })
}

// @Tags Reservation
// @Summary 用id查询reservation表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.Reservation true "用id查询reservation表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /reservation/findReservation [get]
export const findReservation = (params) => {
  return service({
    url: '/reservation/findReservation',
    method: 'get',
    params
  })
}

// @Tags Reservation
// @Summary 分页获取reservation表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取reservation表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /reservation/getReservationList [get]
export const getReservationList = (params) => {
  return service({
    url: '/reservation/getReservationList',
    method: 'get',
    params
  })
}

// @Tags Reservation
// @Summary 不需要鉴权的reservation表接口
// @Accept application/json
// @Produce application/json
// @Param data query reservationsReq.ReservationSearch true "分页获取reservation表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /reservation/getReservationPublic [get]
export const getReservationPublic = () => {
  return service({
    url: '/reservation/getReservationPublic',
    method: 'get',
  })
}
